﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" company="MKCoolsoft">
//     Copyright (c) mkcoolsoft. All rights reserved.
// </copyright>
// <author>Mario Kuhl</author>
// <revision>26.01.2014 Initial version</revision>
//-----------------------------------------------------------------------

namespace MKCoolsoft.GPXLib
{
    #region usings

    using System;
    using System.Collections.Generic;
    using System.Xml.Serialization;

    #endregion usings

    /// <summary>
    /// Information about the copyright holder and any license 
    /// governing use of this file. By linking to an appropriate 
    /// license, you may place your data into the public domain or 
    /// grant additional usage rights.
    /// </summary>
    public class Copyright
    {
        #region private fields

        /// <summary>
        /// Year of copyright.
        /// </summary>
        private string yearField;

        /// <summary>
        /// Link to external file containing license text.
        /// </summary>
        private string licenseField;

        /// <summary>
        /// Copyright holder
        /// </summary>
        private string authorField;

        #endregion private fields

        #region public properties

        /// <summary>
        /// Gets or sets Year of copyright.
        /// </summary>
        [XmlElementAttribute(DataType = "gYear")]
        public string Year
        {
            get
            {
                return this.yearField;
            }

            set
            {
                this.yearField = value;
            }
        }

        /// <summary>
        /// Gets or sets License information.
        /// </summary>
        [XmlElementAttribute(DataType = "anyURI")]
        public string License
        {
            get
            {
                return this.licenseField;
            }

            set
            {
                this.licenseField = value;
            }
        }

        /// <summary>
        /// Gets or sets Author information.
        /// </summary>
        [XmlAttributeAttribute]
        public string Author
        {
            get
            {
                return this.authorField;
            }

            set
            {
                this.authorField = value;
            }
        }

        #endregion  public properties
    }
}
